package cn.com.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import cn.com.mapper.ActivationCodeMapper;
import cn.com.beans.ActivationCode;
import cn.com.service.ActivationCodeService;

import java.util.List;

@Service
public class ActivationCodeServiceImpl implements ActivationCodeService{

    @Resource
    private ActivationCodeMapper activationCodeMapper;

    @Override
    public int deleteByPrimaryKey(Integer acId) {
        return activationCodeMapper.deleteByPrimaryKey(acId);
    }

    @Override
    public int insert(ActivationCode record) {
        return activationCodeMapper.insert(record);
    }

    @Override
    public int insertSelective(ActivationCode record) {
        return activationCodeMapper.insertSelective(record);
    }

    @Override
    public ActivationCode selectByPrimaryKey(Integer acId) {
        return activationCodeMapper.selectByPrimaryKey(acId);
    }

    @Override
    public int updateByPrimaryKeySelective(ActivationCode record) {
        return activationCodeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ActivationCode record) {
        return activationCodeMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<ActivationCode> selectByACtivationCode(ActivationCode record) {
        return activationCodeMapper.selectByACtivationCode(record);
    }

    @Override
    public List<ActivationCode> findAll() {
        return activationCodeMapper.findAll();
    }

}
